Signed-off-by: Vincent Hanquez <vincent@xensource.com>
unsigned long *bitmap;
};
-static void iommu_bug(void)
-{
- printk(KERN_ALERT "Fatal DMA error! Please use 'swiotlb=force'\n");
- BUG();
-}
-
-#define IOMMU_BUG_ON(test) do { if (unlikely(test)) iommu_bug(); } while(0)
+#define IOMMU_BUG_ON(test) \
+do { \
+ if (unlikely(test)) { \
+ printk(KERN_ALERT "Fatal DMA error! Please use 'swiotlb=force'\n"); \
+ BUG(); \
+ } \
+} while(0)
int
dma_map_sg(struct device *hwdev, struct scatterlist *sg, int nents,